package com.pap.rbac.role.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_rbac_role", namespace = "com.pap.rbac.role.auto.mapper.RoleMapper", remarks = " 修改点 ", aliasName = "t_rbac_role t_rbac_role")
public class Role extends PapBaseEntity implements Serializable {
	/**
	 * 编码,所属表字段为t_rbac_role.CODE
	 */
	@MyBatisColumnAnnotation(name = "CODE", value = "t_rbac_role_CODE", chineseNote = "编码", tableAlias = "t_rbac_role")
	private String code;

	/**
	 * 名称,所属表字段为t_rbac_role.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_rbac_role_NAME", chineseNote = "名称", tableAlias = "t_rbac_role")
	private String name;

	/**
	 * 编号上级路径,所属表字段为t_rbac_role.PATH_IDS
	 */
	@MyBatisColumnAnnotation(name = "PATH_IDS", value = "t_rbac_role_PATH_IDS", chineseNote = "编号上级路径", tableAlias = "t_rbac_role")
	private String pathIds;

	/**
	 * 编码上级路径,所属表字段为t_rbac_role.PATH_CODES
	 */
	@MyBatisColumnAnnotation(name = "PATH_CODES", value = "t_rbac_role_PATH_CODES", chineseNote = "编码上级路径", tableAlias = "t_rbac_role")
	private String pathCodes;

	/**
	 * 名称上级路径,所属表字段为t_rbac_role.PATH_NAMES
	 */
	@MyBatisColumnAnnotation(name = "PATH_NAMES", value = "t_rbac_role_PATH_NAMES", chineseNote = "名称上级路径", tableAlias = "t_rbac_role")
	private String pathNames;

	/**
	 * 父节点编号,所属表字段为t_rbac_role.PARENT_ID
	 */
	@MyBatisColumnAnnotation(name = "PARENT_ID", value = "t_rbac_role_PARENT_ID", chineseNote = "父节点编号", tableAlias = "t_rbac_role")
	private String parentId;

	/**
	 * 层级,所属表字段为t_rbac_role.LEVEL
	 */
	@MyBatisColumnAnnotation(name = "LEVEL", value = "t_rbac_role_LEVEL", chineseNote = "层级", tableAlias = "t_rbac_role")
	private String level;

	/**
	 * 状态,所属表字段为t_rbac_role.STATUS
	 */
	@MyBatisColumnAnnotation(name = "STATUS", value = "t_rbac_role_STATUS", chineseNote = "状态", tableAlias = "t_rbac_role")
	private String status;

	/**
	 * 备注,所属表字段为t_rbac_role.REMARK
	 */
	@MyBatisColumnAnnotation(name = "REMARK", value = "t_rbac_role_REMARK", chineseNote = "备注", tableAlias = "t_rbac_role")
	private String remark;

	private static final long serialVersionUID = 1L;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPathIds() {
		return pathIds;
	}

	public void setPathIds(String pathIds) {
		this.pathIds = pathIds;
	}

	public String getPathCodes() {
		return pathCodes;
	}

	public void setPathCodes(String pathCodes) {
		this.pathCodes = pathCodes;
	}

	public String getPathNames() {
		return pathNames;
	}

	public void setPathNames(String pathNames) {
		this.pathNames = pathNames;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String getDynamicTableName() {
		return "t_rbac_role";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", code=").append(code);
		sb.append(", name=").append(name);
		sb.append(", pathIds=").append(pathIds);
		sb.append(", pathCodes=").append(pathCodes);
		sb.append(", pathNames=").append(pathNames);
		sb.append(", parentId=").append(parentId);
		sb.append(", level=").append(level);
		sb.append(", status=").append(status);
		sb.append(", remark=").append(remark);
		sb.append("]");
		return sb.toString();
	}
}